#!/usr/bin/python3
#Author : Gyl  
#当前系统日期 : 2019/2/1   
#当前系统时间 : 15:19   
#创建文件的IDE名称 : PyCharm

from flask import Flask,make_response

app= Flask(__name__)
app.config.from_object('config')
print(app.config['DEBUG'])


@app.route('/hello')
def hello():
    headers = {
        'content-tpye':'text/plain'
    }
    respone = make_response('<html><html>',404)
    respone.headers = headers
    return respone

# app.add_url_rule('/hello',view_func=hello)


if __name__ == '__main__':
    app.run(debug = app.config['DEBUG'], host = '0.0.0.0')